package com.monkeys.Utils.ALNS;

import java.time.LocalDate;

public class Node {
    int ID;
    double demand;
    double ReadyTime;
    double ServiceTime;
    double Duetime;
    double x;
    double y;
    int R;                  //所属节点路线
    int Position;
    double Regret_Cost;

    Long id;
    Long goodsDemandId;              //关联的订单id
    Integer targetId;                //目标poi点的id
    Double lng;                      //冗余字段,经度
    Double lat;                      //冗余字段,纬度
    Double weight;                   //货物重量
    LocalDate deadTime;              //需求失效时间

    public Node() {
        this.ID = 0;
        this.demand = 0;
        this.ReadyTime = 0;
        this.ServiceTime = 0;
        this.Duetime = 0;
        this.x = 0;
        this.y = 0;
        this.R = 0;
        this.Position = 0;
        this.Regret_Cost = 0.0;
        this.id=0L;
        this.goodsDemandId=0L;
        this.targetId=0;
        this.lng=0.0;
        this.lat=0.0;
        this.weight=0.0;
        this.deadTime=null;
    }

    public Node(Node N) {
        this.ID = N.ID;
        this.demand = N.demand;
        this.ReadyTime = N.ReadyTime;
        this.ServiceTime = N.ServiceTime;
        this.Duetime = N.Duetime;
        this.x = N.x;
        this.y = N.y;
        this.R = N.R;
        this.Position = N.Position;
        this.Regret_Cost = N.Regret_Cost;
        this.id=0L;
        this.goodsDemandId=0L;
        this.targetId=0;
        this.lng=0.0;
        this.lat=0.0;
        this.weight=0.0;
        this.deadTime=null;
    }
}
